package demo2;

/**
 * Author：毕龙
 * Date: 2024/5/12 9:53
 */
public class TestPerson implements Test18{
    @Override
    public boolean isPrime(int n) {
        for (int i = 2; i <= Math.sqrt(n); i++) {
            if(n % i == 0) return true;
        }
        return false;
    }
}
